#ifndef QDIALOGCAN_H
#define QDIALOGCAN_H

#include <QDialog>
#include <QString>
#include "ControlCAN.h"
namespace Ui {
class QDialogCAN;
}

class QDialogCAN : public QDialog
{
    Q_OBJECT

public:
    void getCANChose(bool & check1,bool & check2);
    QString getCANName1();
    QString getCANName2();
    int getBpsIndex();
public:
    explicit QDialogCAN(QWidget *parent = nullptr);
    ~QDialogCAN();

private:
    Ui::QDialogCAN *ui;
    bool check1 = true;
    bool check2 = false;
    QString name1  = "CAN0";
    QString name2  = "CAN1";
    int choseBpsIndex = 3;
};

#endif // QDIALOGCAN_H
